﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZhimeiSoft.Framework.Common.Entity;

namespace ZhimeiSoft.Framework.Connector.Interface
{
    public interface IConnector
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="loginEntity">登录信息类</param>
        /// <param name="error">错误代码</param>
        /// <returns>表示成功登录，反之登录失败</returns>
        bool Login(ref LoginEntity loginEntity, out int error);

        /// <summary>
        /// 退出
        /// </summary>
        void Logout();
    }
}
